# 将 jsonl 格式的新闻处理成训练需要的输入语料

import sys

from ..convert_dataset2corpus import process_news_jsonl_corpus


def run():
    news_jsonl_fp = sys.argv[2]
    save_fp = sys.argv[3]
    each_count = int(sys.argv[4])
    process_news_jsonl_corpus(news_jsonl_fp, save_fp, each_count=each_count)
